package com.truyen.service;

import java.util.List;

import com.truyen.persistence.entity.LoaiTruyenChu;
import com.truyen.persistence.entity.SearchLoaiTruyenTrinhTham;
import com.truyen.persistence.entity.TruyenTrinhTham;
import com.truyen.utils.PagingInfo;


public interface SearchLoaiTruyenTrinhThamService {
	
	// tao moi
	void save(SearchLoaiTruyenTrinhTham entity);

	//tim theo id
	SearchLoaiTruyenTrinhTham findById(Long id);

	//lay tat ca
	List<SearchLoaiTruyenTrinhTham> getAll();

	//tim 1 doi tuong
	SearchLoaiTruyenTrinhTham findByProperty(String column, Object value);

	//lay list danh sach trong phan quan ly
	List<SearchLoaiTruyenTrinhTham> getAllLst(String kwSearch, String sort, String sortBy,
			PagingInfo pInfo);

	//tim doi tuong theo loai truyen tranh va truyen tranh
	SearchLoaiTruyenTrinhTham findByLoaiTruyenTrinhThamVTruyenTrinhTham(
			LoaiTruyenChu loaiTruyenChu, TruyenTrinhTham truyen);

	//lay danh sach truyen boi loai truyen
	List<SearchLoaiTruyenTrinhTham> getLstByLoaiTruyenTrinhThamWithPaging(
			LoaiTruyenChu loaiTruyenChu, String orderBy, PagingInfo pInfo);
	
}
